package com.chifuyu.control;

import com.chifuyu.Runner;
import com.chifuyu.master.Character;
import lombok.Data;

@Data
public class Line {
    private static final Integer LINE_LENGTH = 100;
    private static String INIT_LINE = "----------------------------------------------------------------------------------------------------";

    public Line() {

    }

    public Line(Character master1) {
//        this.MASTER_1_POS = this.MASTER_1.getSPEED();
//        this.MASTER_2_POS = this.MASTER_2.getSPEED();
    }

//    public void showLine() {
//        String CUR_LINE = INIT_LINE;
//        char[] CUR_LINE_CHARA = CUR_LINE.toCharArray();
//        CUR_LINE_CHARA[this.MASTER_1_POS - 1] = 'O';
//        CUR_LINE_CHARA[this.MASTER_2_POS - 1] = 'T';
//        StringBuilder LINE_BUILDER = new StringBuilder();
//        for (char c : CUR_LINE_CHARA) {
//            LINE_BUILDER.append(c);
//        }
//        System.out.println(LINE_BUILDER);
//    }

    public void showRounds() {
        System.out.println("--------------------------------------------- TURNS " + Runner.DAY + " ---------------------------------------------");
    }

    public void addRounds() {
        Runner.DAY++;
    }

    public void action() {
        showRounds();

        addRounds();
    }
}
